package com.apple.reveal.controller.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class ApiLog {

	@Before("execution(public * * (. .))")
	public void before(JoinPoint point) {
		Object[] args=point.getArgs();
		System.out.println(args);
	}

	@AfterThrowing("execution(public * * (. .))")
	public void error() {

	}

	@After("execution(public * * (. .))")
	public void after() {

	}
}
